/**
 * @Author: 孙小寒
 * @Date: 2020-12-23
 * @Last Modified by: sunxh
 * @Last Modified time: 2020-12-23 14:38
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';


// 列表查询
export const getBatterySupplierList = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/batterySupplier`, {params})
// 列表查询
export const getBatterySupplier = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/batterySupplier/findSupplier`, {params})
// ID获取订单详情
export const getBatterySupplierById = id => axios.get(`${SERVER.CMSCLOUD_WMS}/part/batterySupplier/${id}`)
// 查询特殊追溯订单唯一标识字段是否重复
export const getValidRepeat = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/batterySupplier/validRepeat`, {params})
// 保存
export const postSaveBatterySupplier = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/batterySupplier`, params)
// 根据ids批量更新启用标志
export const postUpdateStatusByIds = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/batterySupplier/updateStatusByIds/${params.available}`, params.ids)
// 修改
export const putBatterySupplier = params => axios.put(`${SERVER.CMSCLOUD_WMS}/part/batterySupplier`, params);
